package com.dule.Medic.service;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter; 

import com.dule.Medic.model.Doctor;

public interface DoctorService 
{
	@CommitAfter   
	Long save(Doctor doctor); 
	
	@CommitAfter      
	boolean update(Doctor doctor);
	
	Doctor get(Long id);  
	
	Doctor retrive(Doctor doctor); 
	
	Doctor retrive(Long id); 
	
	List<Doctor> retrieveAll();
	
	@CommitAfter
	public boolean changeDoctorInfo(Doctor doctor);
	
	@CommitAfter
	public boolean deleteDoctor(Doctor doctor); 	
}
